package servlets;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import service2.SignService;

import java.io.IOException;

public class SignLate extends HttpServlet {//过号处理
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.print("66666666666666666666666666666666666");
    	if(req.getParameter("Account")!=null) {
            System.out.println("SignLate get Account Yes");
            SignService signService=new SignService();
            if(!signService.UpdateRecordLate(req.getParameter("Account"),Integer.parseInt(req.getParameter("indid")))){
                System.out.println("update Sign false");
            }
            resp.sendRedirect("Callpatient.jsp");
        }
        else
            System.out.println("SignLate get Account Error");
    }
}
